#include <float.h>
#include <iostream>
#include <cstring>
#include <cstdint>

namespace Utils {

inline static double check_v(double val)
{
    return val == DBL_MAX || val == FLT_MAX ? 0 : val;
}
inline uint32_t strToTime(const char* strTime)
{
	static char str[10] = { 0 };
	const char *pos = strTime;
	int idx = 0;
	auto len = strlen(strTime);
	for(std::size_t i = 0; i < len; i++)
	{
		if(strTime[i] != ':')
		{
			str[idx] = strTime[i];
			idx++;
		}
	}
	str[idx] = '\0';

	return strtoul(str, NULL, 10);
}

}